const platformRouter = [
  {
    path: '/platform',
    name: 'platform',
    redirect: '/platform/pages',
    meta: { title: '平台', icon: 'i-custom-timeline' },
    children: [
      {
        path: 'tag-groups',
        name: 'TagGroupIndex',
        component: () => import('#/views/platform/tag/group/index.vue'),
        meta: {
          title: '标签分组管理',
          icon: 'i-custom-tag',
          hidden: true,
          activeMenu: '/platform/tags',
          actions: ['tagging-tag-group-index'],
        },
      },
      {
        path: 'tag-group-trashed',
        name: 'TagGroupTrashed',
        component: () => import('#/views/platform/tag/group/trashed.vue'),
        meta: {
          title: '标签分组回收站',
          icon: 'i-custom-tag',
          hidden: true,
          activeMenu: '/platform/tags',
          actions: ['tagging-tag-group-trashed'],
        },
      },
      {
        path: 'tags',
        name: 'TagIndex',
        component: () => import('#/views/platform/tag/index.vue'),
        meta: { title: '标签管理', icon: 'i-custom-tag', actions: ['tagging-tag-index'] },
      },
      {
        path: 'tag-trashed',
        name: 'TagTrashed',
        component: () => import('#/views/platform/tag/trashed.vue'),
        meta: {
          title: '标签回收站',
          icon: 'i-custom-tag',
          hidden: true,
          activeMenu: '/platform/tags',
          actions: ['tagging-tag-trashed'],
        },
      },
      {
        path: 'timelines',
        name: 'TimelineIndex',
        component: () => import('#/views/platform/timeline/index.vue'),
        meta: {
          title: '时间轴管理',
          icon: 'i-custom-timeline',
          actions: ['platform-timeline-index'],
        },
      },
      {
        path: 'timeline-trashed',
        name: 'TimelineTrashed',
        component: () => import('#/views/platform/timeline/trashed.vue'),
        meta: {
          title: '时间轴回收站',
          icon: 'i-custom-timeline',
          hidden: true,
          activeMenu: '/platform/timelines',
          actions: ['platform-timeline-trashed'],
        },
      },
      {
        path: 'page-create',
        name: 'PageCreator',
        component: () => import('#/views/platform/page/create.vue'),
        meta: {
          title: '添加单页',
          hidden: true,
          icon: 'i-custom-page',
          activeMenu: '/platform/pages',
          actions: ['platform-page-store'],
        },
      },
      {
        path: 'page-edit/:id',
        name: 'PageEditor',
        component: () => import('#/views/platform/page/edit.vue'),
        meta: {
          title: '编辑文章',
          hidden: true,
          icon: 'i-custom-page',
          activeMenu: '/platform/pages',
          actions: ['platform-page-update'],
        },
      },
      {
        path: 'pages',
        name: 'PageIndex',
        component: () => import('#/views/platform/page/index.vue'),
        meta: { title: '单页管理', icon: 'i-custom-page', actions: ['platform-page-index'] },
      },
      {
        path: 'page-trashed',
        name: 'PageTrashed',
        component: () => import('#/views/platform/page/trashed.vue'),
        meta: {
          title: '单页回收站',
          icon: 'i-custom-page',
          hidden: true,
          activeMenu: '/platform/pages',
          actions: ['platform-page-trashed'],
        },
      },
      {
        path: 'page-show/:id',
        name: 'PageShow',
        component: () => import('#/views/platform/page/show.vue'),
        meta: {
          title: '单页详情',
          icon: 'i-custom-page',
          hidden: true,
          activeMenu: '/platform/pages',
        },
      },
      {
        path: 'banners',
        name: 'BannerIndex',
        component: () => import('#/views/platform/banner/index.vue'),
        meta: { title: '横幅管理', icon: 'i-custom-page', actions: ['platform-banner-index'] },
      },
      {
        path: 'banner-trashed',
        name: 'BannerTrashed',
        component: () => import('#/views/platform/banner/trashed.vue'),
        meta: {
          title: '横幅回收站',
          icon: 'i-custom-page',
          hidden: true,
          activeMenu: '/platform/banners',
          actions: ['platform-banner-trashed'],
        },
      },
      {
        path: 'app-versions',
        name: 'AppVersionIndex',
        component: () => import('#/views/platform/app-version/index.vue'),
        meta: {
          title: 'App 版本',
          icon: 'mingcute:version-line',
          actions: ['platform-app-version-index'],
        },
      },
      {
        path: 'app-version-trashed',
        name: 'AppVersionTrashed',
        component: () => import('#/views/platform/app-version/trashed.vue'),
        meta: {
          title: 'App 版本回收站',
          icon: 'i-custom-version',
          hidden: true,
          activeMenu: '/platform/app-versions',
          actions: ['platform-app-version-trashed'],
        },
      },
      {
        path: 'app-check-updates',
        name: 'AppCheckUpdateIndex',
        component: () => import('#/views/platform/app-check-update/index.vue'),
        meta: {
          title: 'App检查更新',
          icon: 'i-custom-check-update',
          actions: ['platform-app-check-update-index'],
        },
      },
    ],
  },
]

export default platformRouter
